<include file="Public/head" />
<style type="text/css">
    .lottory_info{margin:10px 20px;}
    .lottory_info table tr td{height:30px;text-align:left;font-size:12px;padding-left:10px;}
    .lottory_info .tit{font-weight:bolder;color:#303030;}
    .clear{clear:both;}
    .kj_info{margin-top:20px;}
    .kj_info h3{height:30px;line-height:30px;padding-left:10px;text-align:left;margin-top:20px;}
    .kj_info p{height:25px;line-height:25px;text-align:left;}
    .lottory_win_no {height: 25px;margin-bottom: 10px; width: 100%;}
    .lottory_win_no span{background-color: #20ab4f;border: 1px solid #fff;
     border-radius: 5px;color: #fff;display: block;float: left; height: 28px;line-height: 28px;text-align: center;width: 180px;}
    
</style>
</head>
<include file="Public/common_header" />
<div class="mian">
<include file="Public/sidebar" menu="hdgl" />
    <div class="mianR">
        <h3 class='cha'>活动详情</h3>
        <div class='lottory_info'>
            <php>
                $lottory_status_arr = array('1'=>'待上线','2'=>'进行中','3'=>'已结束','4'=>'已下线');
                $lottory_type_arr = array('1'=>'注册抽奖');
            </php>
            <table border='1' width='100%'>
                 <tbody>
                        <tr>
                            <td colspan='4' style="background-color:#c1c1c1;font-size:14px;color:#303030;"><span>活动信息</span></td>
                        </tr>
                        <tr>
                            <td width="11%" class="tit">活动ID</td>
                            <td width="89%">{$lottory.id}</td>
                        </tr>
                        <tr>    
                            <td width="11%" class="tit">名称</td>
                            <td width="89%">{$lottory.lottory_name}</td>
                        </tr>
                        <tr>
                            <td width="11%" class="tit">图片</td>
                            <td width="89%"><img src="{$lottory.lottory_image}@120w_60h" style="padding:5px;"/></td>
                        </tr>
                        <tr>   
                            <td width="11%" class="tit">类型</td>
                            <td width="89%">{$lottory_type_arr[$lottory[lottory_type]]}</td>
                        </tr>
                        <tr>
                            <td width="11%" class="tit">开始时间</td>
                            <td width="89%">{$lottory.lottory_start_time|date="Y-m-d H:i:s", ###}</td>
                        </tr>
                        <tr>   
                            <td width="11%" class="tit">结束时间</td>
                            <td width="89%">{$lottory.lottory_end_time|date="Y-m-d H:i:s", ###}</td>
                        </tr>
                        <tr>
                            <td width="11%" class="tit">开奖时间</td>
                            <td width="89%">{$lottory.lottory_time|date="Y-m-d H:i:s", ###}</td>
                        </tr>
                        <tr>   
                            <td width="11%" class="tit">奖品</td>
                            <td width="89%">{$lottory.lottory_award}</td>
                        </tr>
                        <tr>
                            <td width="11%" class="tit">状态</td>
                            <td width="89%">{$lottory_status_arr[$lottory[lottory_status]]}</td>
                        </tr>
                        <tr>   
                            <td width="11%" class="tit">创建时间</td>
                            <td width="89%">{$lottory.create_time|date="Y-m-d H:i:s", ###}</td>
                        </tr>
                        <tr>   
                            <td colspan="2">
                                <a href="{:U('Lottory/lottoryTicket',['id'=>$lottory[id]])}" style="color:#20ab4f;" class="tit">查看奖券列表</a>
                            </td>
                        </tr>
                     </tr>
                 </tbody>
            </table>
            <if condition="($lottory.lottory_status eq 3) AND ($lottory.lottory_win_num gt 0)">
                <div class="kj_info">
                    <h3 style="background-color:#c1c1c1;font-size:14px;color:#303030;">开奖信息</h3>
                    <div class="lottory_win_no" style="margin-top:20px;">
                        <span style="font-size:14px;">中奖奖券号：<b>{:lottory_ticket_format($lottory['lottory_win_num'])}</b></span>
                    </div>
                    <p>
                        开奖信息：开奖日（2016年06月01日收盘时）的上证指数×深证成指×10000=12位数。
                       （指数以证交所公布数字为准，若遇当日未交易，则顺延下一个交易日）；
                    </p>
                    <p>将此12位数的数字倒序排列后（如首位是0，则直接抹去），再除以截止每周日23:59:59抽奖号码的数量，得到的余数加1即为本次活动获奖号码。
                    </p>
                </div>
                <table border='1' width='100%' style="margin-top:20px;"> 
                    <tbody>
                        <tr>
                            <td width="11%" style="color:#20ab4f;" class="tit">上证指数</td>
                            <td width="89%" style="color:#20ab4f;">{$lottory.sse}</td>
                        </tr>
                        <tr>   
                            <td width="11%" style="color:#20ab4f;" class="tit">深证指数</td>
                            <td width="89%" style="color:#20ab4f;">{$lottory.szs}</td>
                        </tr>
                         <tr>
                            <td width="11%" class="tit">奖券数量</td>
                            <td width="89%">{$lottory_ticket_num}</td>
                        </tr>
                    </tbody>
                </table>
            </if>
        </div>
        <div class="yongBtn1">
            <input type="button"  class="quxiao" onclick="window.close()" value="关闭" />
        </div>
    </div>
</div>
<script type="text/javascript">
 
function setMethod(m){
    $("#service_method").val(m);
}

function setStatus(status){
    $("#business_status").val(status);
}

$(".other_remark").blur(function(){    
    $("#reserve_remark").val($(this).val());
});


$(".gencuur").click(function(){
    var str = $(this).children("font").html();
    $("#reserve_remark").val(str);
});
</script>
</body>
</html>
